Skip to main content

SLAM_sObject_fields

Downloads detailed field definitions for a single object. The results will be stored in a table sobject_fields_<sObjectName>

tip

When bulk retrieval of all fields for all objects from Salesforce org is not needed, this is the preferred method because this method is not limited by permissions.

  • Fields named part.* are not subject to permissions
  • Fields named desc.* are subject to permissions and may be null

Parameters:

NameTypeDefaultDescription
@sObjectVARCHAR(120)RequiredSalesforce object name to retrieve fields for
@exists_actionVARCHAR(20)NULLAction to take if the destination object sobject_fields_<sObjectName> already exists. If NULL, uses the value from SLAM_Settings.default_exists_action (defaulted to 'drop' during initial setup).

Valid options:
  • 'drop'
  • 'rename'
  • 'fail'

Usage Examples:

EXEC dbo.SLAM_sObject_fields 'Account'

SELECT * FROM sobject_fields_Account